<template>
	<view>
		<view class="u-flex u-col u-col-center u-flex-wrap  u-row-center p-20" >
			<view class="hot-text u-flex u-row-left" v-for="(item,index) in list" :key="index" @tap="goDetail(item)"> 
				<view>
					
					<u--image :src="item.image"  height="40rpx" width="40rpx" mode="heightFix">
						
					</u--image>
				</view>
				<view style="margin-left: 10rpx;">
					{{item.title}}
				</view>
			</view>
		
		
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			list:{
				type:Array,
				default:()=>{return []}
			}
		},
		name:"categoryList",
		data() {
			return {
				
			};
		},
		methods:{
			goDetail(item){
				uni.navigateTo({
					url:"/pages/sub/store/category/list?id="+item.id+"&title="+item.title
				})
			}
		}
	}
</script>

<style lang="scss">
.hot-text{
	font-size: 28rpx;
	letter-spacing: 6rpx;
	height: 60rpx;
	line-height: 60rpx;
	margin-bottom: 20rpx;
	border-radius: 30rpx;
	border: 1rpx solid #a8a8a8;
	padding: 0 30rpx;
	margin-left: 5rpx;
	margin-right: 5rpx;
}
</style>
